# 读取输入的n和m
n, m = map(float, input().split())
# 计算买书花费的金额，打八折即原价的0.8倍
cost = m * 0.8
# 计算剩余的钱数
remain = n - cost
# 保留两位小数输出
print("%.2f" % remain)